﻿@using Sohobloo.SoPermission.Web.Models
@model IEnumerable<GroupModel>

<tr>
    <th>
        Name
    </th>
    <th>
        Description
    </th>
    <th>
        Enabled
    </th>
    <th>
        Function
    </th>
</tr>
@foreach(var groupModel in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(model => groupModel.Name)
        </td>
        <td>
            @Html.DisplayFor(model => groupModel.Description)
        </td>
        <td>
            @Html.DisplayFor(model => groupModel.Enabled)
        </td>
        <td>
            <button type="button" name="Edit">Edit</button>
            <button type="button" name="Delete">Delete</button>
            @Html.HiddenFor(model => groupModel.Id)
        </td>
    </tr>
}